import matplotlib.pyplot as plt
import pandas as pd
df=pd.read_excel('餐饮综合数据.xlsx')
plt.rcParams['font.sans-serif']='SimHei'
x=df['价格']
plt.xlabel('/元')
plt.ylabel('菜数量')
plt.title('不同')
plt.hist(x,bins=12,color=(0.894,0,0.498),edgecolor='k')
plt.show()